home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / hplip / ui4 / pluginlicensedialog_base.py < prev    next >
Encoding:
Python Source  |  2009-04-14  |  5.1 KB  |  103 lines

  1. # -*- coding: utf-8 -*-
  2.  
  3. # Form implementation generated from reading ui file 'ui4/pluginlicensedialog_base.ui'
  4. #
  5. # Created: Tue Feb 17 11:36:14 2009
  6. #      by: PyQt4 UI code generator 4.3.3
  7. #
  8. # WARNING! All changes made in this file will be lost!
  9.  
  10. from PyQt4 import QtCore, QtGui
  11.  
  12. class Ui_Dialog(object):
  13.     def setupUi(self, Dialog):
  14.         Dialog.setObjectName("Dialog")
  15.         Dialog.resize(QtCore.QSize(QtCore.QRect(0,0,700,500).size()).expandedTo(Dialog.minimumSizeHint()))
  16.  
  17.         self.gridlayout = QtGui.QGridLayout(Dialog)
  18.         self.gridlayout.setObjectName("gridlayout")
  19.  
  20.         self.StackedWidget = QtGui.QStackedWidget(Dialog)
  21.         self.StackedWidget.setObjectName("StackedWidget")
  22.  
  23.         self.page = QtGui.QWidget()
  24.         self.page.setObjectName("page")
  25.  
  26.         self.gridlayout1 = QtGui.QGridLayout(self.page)
  27.         self.gridlayout1.setObjectName("gridlayout1")
  28.  
  29.         self.label = QtGui.QLabel(self.page)
  30.  
  31.         font = QtGui.QFont()
  32.         font.setPointSize(16)
  33.         self.label.setFont(font)
  34.         self.label.setObjectName("label")
  35.         self.gridlayout1.addWidget(self.label,0,0,1,1)
  36.  
  37.         self.line = QtGui.QFrame(self.page)
  38.         self.line.setFrameShape(QtGui.QFrame.HLine)
  39.         self.line.setFrameShadow(QtGui.QFrame.Sunken)
  40.         self.line.setObjectName("line")
  41.         self.gridlayout1.addWidget(self.line,1,0,1,1)
  42.  
  43.         self.label_2 = QtGui.QLabel(self.page)
  44.         self.label_2.setWordWrap(True)
  45.         self.label_2.setObjectName("label_2")
  46.         self.gridlayout1.addWidget(self.label_2,2,0,1,1)
  47.  
  48.         self.LicenseTextEdit = QtGui.QTextEdit(self.page)
  49.         self.LicenseTextEdit.setAutoFormatting(QtGui.QTextEdit.AutoAll)
  50.         self.LicenseTextEdit.setReadOnly(True)
  51.         self.LicenseTextEdit.setTextInteractionFlags(QtCore.Qt.NoTextInteraction)
  52.         self.LicenseTextEdit.setObjectName("LicenseTextEdit")
  53.         self.gridlayout1.addWidget(self.LicenseTextEdit,3,0,1,1)
  54.  
  55.         self.AgreeCheckBox = QtGui.QCheckBox(self.page)
  56.         self.AgreeCheckBox.setObjectName("AgreeCheckBox")
  57.         self.gridlayout1.addWidget(self.AgreeCheckBox,4,0,1,1)
  58.         self.StackedWidget.addWidget(self.page)
  59.         self.gridlayout.addWidget(self.StackedWidget,0,0,1,5)
  60.  
  61.         self.line_2 = QtGui.QFrame(Dialog)
  62.         self.line_2.setFrameShape(QtGui.QFrame.HLine)
  63.         self.line_2.setFrameShadow(QtGui.QFrame.Sunken)
  64.         self.line_2.setObjectName("line_2")
  65.         self.gridlayout.addWidget(self.line_2,1,0,1,5)
  66.  
  67.         spacerItem = QtGui.QSpacerItem(161,20,QtGui.QSizePolicy.Expanding,QtGui.QSizePolicy.Minimum)
  68.         self.gridlayout.addItem(spacerItem,2,1,1,1)
  69.  
  70.         self.BackButton = QtGui.QPushButton(Dialog)
  71.         self.BackButton.setEnabled(False)
  72.         self.BackButton.setObjectName("BackButton")
  73.         self.gridlayout.addWidget(self.BackButton,2,2,1,1)
  74.  
  75.         self.NextButton = QtGui.QPushButton(Dialog)
  76.         self.NextButton.setEnabled(False)
  77.         self.NextButton.setObjectName("NextButton")
  78.         self.gridlayout.addWidget(self.NextButton,2,3,1,1)
  79.  
  80.         self.CancelButton = QtGui.QPushButton(Dialog)
  81.         self.CancelButton.setObjectName("CancelButton")
  82.         self.gridlayout.addWidget(self.CancelButton,2,4,1,1)
  83.  
  84.         self.retranslateUi(Dialog)
  85.         self.StackedWidget.setCurrentIndex(0)
  86.         QtCore.QObject.connect(self.AgreeCheckBox,QtCore.SIGNAL("toggled(bool)"),self.NextButton.setEnabled)
  87.         QtCore.QObject.connect(self.NextButton,QtCore.SIGNAL("clicked()"),Dialog.accept)
  88.         QtCore.QObject.connect(self.CancelButton,QtCore.SIGNAL("clicked()"),Dialog.reject)
  89.         QtCore.QMetaObject.connectSlotsByName(Dialog)
  90.  
  91.     def retranslateUi(self, Dialog):
  92.         Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "HP Device Manager - Plug-in Installer", None, QtGui.QApplication.UnicodeUTF8))
  93.         self.label.setText(QtGui.QApplication.translate("Dialog", "Driver Plug-in License Agreement", None, QtGui.QApplication.UnicodeUTF8))
  94.         self.label_2.setText(QtGui.QApplication.translate("Dialog", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
  95.         "p, li { white-space: pre-wrap; }\n"
  96.         "</style></head><body style=\" font-family:\'Sans Serif\'; font-size:9pt; font-weight:400; font-style:normal;\">\n"
  97.         "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\">Please read the driver plug-in license agreement and then check the <span style=\" font-style:italic;\">I agree</span> box and then click <span style=\" font-style:italic;\">Next</span> to continue.</p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
  98.         self.AgreeCheckBox.setText(QtGui.QApplication.translate("Dialog", "I agree to the terms of the driver plug-in license agreement", None, QtGui.QApplication.UnicodeUTF8))
  99.         self.BackButton.setText(QtGui.QApplication.translate("Dialog", "< Back", None, QtGui.QApplication.UnicodeUTF8))
  100.         self.NextButton.setText(QtGui.QApplication.translate("Dialog", "Next >", None, QtGui.QApplication.UnicodeUTF8))
  101.         self.CancelButton.setText(QtGui.QApplication.translate("Dialog", "Cancel", None, QtGui.QApplication.UnicodeUTF8))
  102.  
  103.